<%@page import="dto.MemberDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<script type="text/javascript">
function getDateForDisplay(){
	var date = ${sessionScope.login_info.regist_date};
	date = date.toString(10);
	var dateText = document.createTextNode((date.substring(0,4)+"."+date.substring(4,6)+"."+date.substring(6,8)));
	var td1 = document.getElementById("date");
	td1.appendChild(dateText);
};
function updateMember(){
	document.location.href="member_update_form.do";
};
function birthdayForDisplay(){
	
}
</script>
<body onload="getDateForDisplay()">
	<table>
		<tr>
		<td valign="top">
		<table>
			<tr>
				<td>
					<img src="/${initParam.context_root }/member_picture/${sessionScope.login_info.picture_filename}" width="250px" height="300px"><br>
				</td>
			</tr>
			<tr>
				<td width="100">id : ${sessionScope.login_info.member_id}</td>
			</tr>
			
		</table>
		</td>
		
		<td valign="top">
		<table>
			<tr>
				<td width="100px" height="35px" align="right">name</td>
				<td width="100px" height="35px" >&nbsp;&nbsp;${sessionScope.login_info.first_name} ${sessionScope.login_info.last_name}</td>
			</tr>
			<tr>
				<td width="100px" height="35px" align="right">birthday</td>
				<td width="200" height="35px">&nbsp;&nbsp;${sessionScope.login_info.birthday}</td>	
			</tr>
			<tr>
				<td width="100px" height="35px" align="right">phone number</td>
				<td width="200" height="35px">&nbsp;&nbsp;${sessionScope.login_info.phone_no}</td>
			</tr>
			<tr>
				<td width="100px" height="35px" align="right">address</td>
				<td width="200" height="35px">&nbsp;&nbsp;${sessionScope.login_info.address}</td>
			</tr>
			<tr>
				<td width="100px" height="35px" align="right">regist date</td>
				<td width="200" height="35px" id="date">&nbsp;&nbsp;</td>
			</tr>
			<tr>
				<td width="100px" height="35px" align="right">amount</td>
				<td width="200" height="35px">&nbsp;&nbsp;$${sessionScope.login_info.amount}</td>
			</tr>
		</table>
		</td>
		</tr>
		<tr>
		<td><input type="image" src="./img/update.png" onclick="updateMember()"></td>
		</tr>
	</table>
</body>
</html>